/* Copyright (c) [2025] [zhi1208@126.com]
 * SPDX-License-Identifier: MIT
 */

#pragma once

/*********************
 *      INCLUDES
 *********************/

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/
typedef struct
{
    const char *icon;
    const char *title;
    const lv_color_t color;
    lv_obj_t *info;
    lv_event_cb_t click_cb;
    void *click_cb_user_data;
} hmi_list_item_cfg_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/
lv_obj_t *hmi_list_item_create(lv_obj_t *parent, const hmi_list_item_cfg_t *cfg);
char *hmi_list_item_get_title(lv_obj_t *item);

/**********************
 *      MACROS
 **********************/